﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WebContratos.Bean;
using System.Collections.Generic;
using WebContratos.Manager;

namespace WebContratos
{
    public partial class surSOMOCA : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
        }

        protected void btnConsulta_Click(object sender, EventArgs e)
        {
            List<CortesBean> allCortes = new List<CortesBean>();
            CortesManager ucortes = new CortesManager();


            this.lblContratista.Text = this.txtDesContra.Text;

            allCortes = ucortes.obtieneDatos(this.txtContra.Text, this.txtFechaIni.Text, this.txtFechaFin.Text);

            grdcontratos.DataSource = allCortes;
            grdcontratos.DataBind();

            /*this.ASPxGridView1.DataSource = allCortes;
            this.ASPxGridView1.DataBind();*/

        }
    }
}
